package com.nd.pojo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsProduct {
    private Integer id;

    private Integer goodsId;

    private String[] specifications;
    @DecimalMin(value = "0.00", message = "价格数据有误！")
    private BigDecimal price;
    @Min(0)
    private Integer number;

    private String url;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;


}